package com.example.tree.mapper;

import com.example.tree.domain.po.TreeMedia;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TreeMediaMapper {

    /**
     * 获取古树图片信息
     * @param treeId 古树id
     * @return 古树图片信息
     */
    @Select("select * from tree_media where tree_id = #{treeId}")
    List<TreeMedia> selectTreeImages(Integer treeId);

    /**
     * 删除古树图片信息
     * @param ids 古树id列表
     */
    void deleteByTreeId(Integer[] ids);
}
